function PhotoViewUtils(options){
    this.options = {
        "index":0,
        "instance":null,
        "items":[]
    }
    var self=this;
    this.options = Object.assign(this.options, options);//将设定参数和默认参数进行合并操作;
    PhotoViewUtils.prototype.init=function () {
        var photoBrowser = $.photoBrowser({
            "items":self.options.items
        });
        self.options.instance=photoBrowser;
    }
    PhotoViewUtils.prototype.onShow=function (index) {
        self.options.instance.open(index);
    }
}